﻿@model List<UI.ServiceReference1.certificate_tbModel>

@{
    ViewBag.Title = "certificate_tb";
    Layout = "~/Views/Shared/ShouYe.cshtml";
}
<script src="~/BootstrapSouce/js/jquery.min.js"></script>
<link href="~/BootstrapSouce/css/bootstrap.min.css" rel="stylesheet" />
<script src="~/BootstrapSouce/js/bootstrap.min.js"></script>
<div style="text-align:center;">
    <h2>员工证书</h2>
    <table class="table table-bordered table-hover definewidth m10" style="width:800px">
        <thead>
            <tr>
                <th>证书编号</th>
                <th>证书名称</th>
                <th>人员</th>
                <th>人员成绩</th>
                <th>人员评价</th>
            </tr>
        </thead>
        <tbody>
            @foreach (var item in Model)
            {
                <tr>
                    <td>@item.certificate_id</td>
                    <td>@item.certificate_name</td>
                    <td>@item.userName</td>
                    <td>@item.train_grade</td>
                    <td>
                        @if (item.train_grade >= 90)
                        {
                            <span>卓越</span>
                        }
                        else if (item.train_grade < 90 && item.train_grade >= 80)
                        {
                            <span>优秀</span>
                        }
                        else
                        {
                            <span>不及格</span>
                        }
                    </td>
                </tr>

            }
        </tbody>
    </table>
</div>

